<?php
/**
 * bs多规格sku商城系统
 * ============================================================================
 * 版权所有 2024-2099 wltx666.com，并保留所有权利。
 * 网站地址: https://wltx666.com
 * ============================================================================
 * Author: 草上飞
 * Email: wltx@alipay168.cn
 * QQ: 2719875001
 * Date: 2024/12/15
 * 描述:
 */

namespace app\result;

class HomeResult extends BaseResult
{
    public function index($args = [], $user_id = 0)
    {
        $banner = (new BannerResult())->api_list($args);
        $coupon = (new CouponResult())->api_list($args, $user_id);
        $recommendGoods = (new GoodsResult())->api_recommend_list($args);
        $navs = (new NavsResult())->api_list($args);
        return self::success_return('success', [
            'banner' => $banner,
            'navs' => $navs,
            'coupon' => $coupon,
            'recommendGoods' => $recommendGoods
        ]);
    }
}
